<template>
  <div>
    <Header></Header>
    <van-form @submit="onSubmit" :show-error-message="error">
      <ContentInput></ContentInput>
      <Date></Date>
      <Dec></Dec>
      <div style="margin: 16px;">
        <van-button round block type="info" native-type="submit" color="#59C262">
          完成
        </van-button>
      </div>
    </van-form>
  </div>
</template>

<script>
import Header from './component/Header'
import Date from './component/Date'
import Dec from './component/Dec'
import ContentInput from './component/Content'

export default {
  name: 'index',
  components: { ContentInput, Dec, Date, Header },
  data () {
    return {
      error: false
    }
  },
  methods: {
    onSubmit (e) {
      console.log(e)
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
